package com.mipo.observer;
import java.util.Date;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
@Component
public class TaskListener0 implements ApplicationListener<TaskEvent> {
    @Override
    public void onApplicationEvent(TaskEvent taskEvent) {
    	System.out.println(new Date().toLocaleString() + "taskListener0 triggered start...");
    	try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
    	System.out.println(new Date().toLocaleString() + "taskListener0 triggered start...");
    }
}
